﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Lucilla.Playground.Website.Areas.Controls.Models.SlickGrid;

namespace Lucilla.Playground.Website.Areas.Controls.Controllers
{
    public class SlickGridController : Controller
    {
        //
        // GET: /Controls/SlickGrid/

        public ActionResult Index()
        {
            var model = new SampleGrid1Model();
            
            model.AddRow(new Grid1RowModel()
                             {
                                 id = 1,
                                 RowNum = 1,
                                 ItemId = "001",
                                 ItemDescription = "Lee Cougan Revenge Pro AL",
                                 Price = 10,
                                 VAT = 2,
                                 Total = 12
                             });
            
            return View(model);
        }

    }
}
